package com.ruoyi.team.domain;

import java.util.Date;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 客户联系人对象 customer_linkmane
 *
 * @author sjl
 * @date 2022-11-27
 */
@Data
@TableName("customer_linkmane")
public class CustomerLinkmane extends BaseEntity {
    private static final long serialVersionUID = 1L;

    /**
     * 序号
     */
    @TableId(type = IdType.AUTO)
    @TableField("id")
    private String id;

    /**
     * 客户
     */
    @Excel(name = "客户")
    @TableField("customer_id")
    private Long customerId;

    /**
     * 联系人名字
     */
    @Excel(name = "联系人名字")
    @TableField("linkman")
    private String linkman;

    /**
     * 性别
     */
    @Excel(name = "性别")
    @TableField("gender")
    private String gender;

    /**
     * 年龄
     */
    @Excel(name = "年龄")
    @TableField("age")
    private Integer age;

    /**
     * 电话
     */
    @Excel(name = "电话")
    @TableField("phone")
    private String phone;

    /**
     * 职位
     */
    @Excel(name = "职位")
    @TableField("position")
    private Long position;

    /**
     * 任职状态
     */
    @Excel(name = "任职状态")
    @TableField("position_state")
    private String positionState;

    /**
     * 部门
     */
    @Excel(name = "部门")
    @TableField("department")
    private Long department;

    /**
     * 录入人
     */
    @Excel(name = "录入人")
    @TableField("input_user")
    private Long inputUser;

    /**
     * 录入时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "录入时间", width = 30, dateFormat = "yyyy-MM-dd")
    @TableField("input_time")
    private Date inputTime;

    @TableField(exist = false)
    private String inputUserName;

}
